﻿using System.Collections.Generic;
using System.Linq;
using EzDesk.DesktopClient.AppModule.ViewContract;
using EzDesk.DesktopClient.MVVMEnhance;

namespace EzDesk.DesktopClient.AppModule.ViewModel
{
    public class MoreFunctionPanelViewModel : ViewModelWithSingleContainer<IMoreFunctionPanelView>
    {
        public List<AppFunctionTypeViewModel> FunctionTypeViewModelCollection { get; set; }
        public MoreFunctionPanelViewModel()
        {
            FunctionTypeViewModelCollection = AppManagement.Instance.FunctionTypeCollection
                .Select(ft => new AppFunctionTypeViewModel(ft)).ToList();
        }
    }
}